<%@ page import="quanlythuvien.NhanVien" %>



<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="nhanVien.code.label" default="Mã nhân viên" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="255" required="" value="${nhanVienInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'hoTen', 'error')} ">
	<label for="hoTen">
		<g:message code="nhanVien.hoTen.label" default="Họ tên" />
		
	</label>
	<g:textField name="hoTen" cols="40" rows="5" maxlength="255" value="${nhanVienInstance?.hoTen}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'ngaySinh', 'error')} required">
	<label for="ngaySinh">
		<g:message code="nhanVien.ngaySinh.label" default="Ngày sinh" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngaySinh" precision="day"  value="${nhanVienInstance?.ngaySinh}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'diaChi', 'error')} ">
	<label for="diaChi">
		<g:message code="nhanVien.diaChi.label" default="Địa chỉ" />
		
	</label>
	<g:textField name="diaChi" cols="40" rows="5" maxlength="255" value="${nhanVienInstance?.diaChi}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'dienThoai', 'error')} ">
	<label for="dienThoai">
		<g:message code="nhanVien.dienThoai.label" default="Điện thoại" />
		
	</label>
	<g:textField name="dienThoai" maxlength="50" value="${nhanVienInstance?.dienThoai}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'hocVi', 'error')} ">
	<label for="hocVi">
		<g:message code="nhanVien.hocVi.label" default="Học vị" />
		
	</label>
	<g:textField name="hocVi" cols="40" rows="5" maxlength="255" value="${nhanVienInstance?.hocVi}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'chucVu', 'error')} ">
	<label for="chucVu">
		<g:message code="nhanVien.chucVu.label" default="Chức vụ" />
		
	</label>
	<g:textField name="chucVu" cols="40" rows="5" maxlength="255" value="${nhanVienInstance?.chucVu}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="nhanVien.email.label" default="Email" />
		
	</label>
	<g:textField name="email" cols="40" rows="5" maxlength="255" value="${nhanVienInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'matKhau', 'error')} ">
	<label for="matKhau">
		<g:message code="nhanVien.matKhau.label" default="Mật khẩu" />
		
	</label>
	<g:textField name="matKhau" value="${nhanVienInstance?.matKhau}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhanVienInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="nhanVien.tinhTrang.label" default="Tình trạng" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${nhanVienInstance.tinhTrang}"/>
</div>

